package com.guldan.jaina.provider;

import java.util.List;

import com.guldan.core.dubbo.client.ResponseDTO;
import com.guldan.core.search.Pagination;
import com.guldan.jaina.dto.dicType.DicTypeDTO;
import com.guldan.jaina.dto.dicType.DicTypeSearchDTO;

/**
 * Created by Silas.
 * Date: 2016/11/7
 * Time: 22:49
 */
public interface IDicTypeProvider {

    //获取单个字典类型，传入：dicTypeId
    ResponseDTO<DicTypeDTO> get(Integer dicTypeId);

    //新增/更新单个字典类型，传入：DicTypeDTO
    ResponseDTO<DicTypeDTO> save(DicTypeDTO dicTypeDTO);

    //删除单个字典类型，传入：dicTypeId
    ResponseDTO<Boolean> delete(Integer dicTypeId);

    //分页获取字典类型信息列表，传入：检索DTO
    ResponseDTO<Pagination<DicTypeDTO>> list(DicTypeSearchDTO dicTypeSearchDTO);

    //全部获取（不分页）字典类型信息列表，传入：检索DTO
    ResponseDTO<List<DicTypeDTO>> all(DicTypeSearchDTO dicTypeSearchDTO);
    
}
